package com.gimi.cloud.bbp.commonService.mq.service;


import com.gimi.cloud.bbp.commonService.mq.enume.QueueEnum;

/**
 * 消息发送者配置
 *
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2017-12-26
 **/
public interface CommonSenderService {
    /**
     * 发送消息至消息队列
     * @param exchangeName
     * @param queueName
     * @param routingKey
     * @param message
     * @throws Exception
     */
    void sendMessage2Rabbitmq(String exchangeName, String queueName, String routingKey, Object message) throws Exception;

    /**
     * 发送消息至消息对列
     * @param queueEnum
     * @param message
     * @throws Exception
     */
    void sendMessage2Rabbitmq(QueueEnum queueEnum, Object message) throws Exception;

}
